//
//  UIDoomScreenView.h
//  MobileDoom
//
//  Created by Steven Troughton-Smith on 30/05/2008.
//  Copyright 2008 Glenstal. All rights reserved.
//


#import "iPhoneOSBuild.h"

#if USE_UIKIT

#import <UIKit/UIKit.h>
#import "DoomPalette.h"
#import "DoomEvent.h"


@interface UIDoomScreenView : UIView <UITextInputTraits> {
	NSLock		*mutex;
	CGDataProviderRef provider;
	CGColorSpaceRef colors;
	CGColorSpaceRef colorSpace;
    //NSMutableArray* eventQueue;
		
	CGImageRef screenImage;
	CALayer *screenLayer;
	
	int lastKey;
	
	UIAccelerationValue accelerationX;
    UIAccelerationValue accelerationY;
    UIAccelerationValue accelerationZ;
    NSMutableArray* eventQueue;
	
	int mouseX;
	int mouseY;
	}

- (int)getNextEvent:(event_t*)event;
-(IBAction)goForward:(id)sender;
-(IBAction)goBack:(id)sender;
-(IBAction)goLeft:(id)sender;
-(IBAction)goRight:(id)sender;

@end

#endif
